﻿<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="membermgr.aspx.cs" Inherits="admin_membermgr" Title="Member Management" %>
<%@ Register assembly="SmartPager" namespace="Avg.Controls" tagprefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
<div class="sectiontitle">Member Management</div>
    <div id="home" class="fullpage">
        <table border="0" cellpadding="0" cellspacing="0" Width="100%" id="photo">
                <tr valign="bottom">
                    <td class="caption">
				        <asp:image id="logo" runat="server" ImageUrl="~/images/mark.gif"/>
                        <asp:Label ID="Label3" runat="server" Text="Member Management"></asp:Label>
                    </td>
                    <td align="right" class="caption">
                        <asp:HyperLink ID="HyperLink2" Text="New member..." NavigateUrl="~/Login/newmemberregister.aspx" runat="server" />
                    </td>
				</tr>
				<tr>
					<td colspan="2">
                        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
                            DataKeyNames="ID" onrowdeleting="GridView1_RowDeleting" ShowFooter="True" 
                            PageSize="1">
                            <Columns>
                                <asp:CommandField SelectText="" ShowCancelButton="False" ShowEditButton="True">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                                <asp:BoundField DataField="ID" HeaderText="ID">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="FirstName" HeaderText="FirstName">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:BoundField DataField="LastName" HeaderText="LastName">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>                                
                                <asp:BoundField DataField="Email" HeaderText="Email">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:BoundField>
                                <asp:CommandField ShowDeleteButton="True">
                                    <ItemStyle HorizontalAlign="Center" />
                                </asp:CommandField>
                            </Columns>
                            <EmptyDataTemplate>
                                <asp:Label ID="Label2" runat="server" Text="No registered member found!" ForeColor="Red"></asp:Label>
                            </EmptyDataTemplate>
                            <PagerSettings Position="TopAndBottom" />
                        </asp:GridView>
                        <cc1:SmartPager ID="SmartPagerMember" runat="server" Display="9"
                            PageNumberBoxPadding="2" PageNumberBoxBorderColor="#ccc" PageLinkBackColor="#BFEFFF" 
                            PageLinkHoverForeColor="#c00" OnPageChanged="PgrMain_PageChanged"
                            />
                        <br/>
					</td>
				</tr>
			</table>
    </div>
</asp:Content>
